O'Reilly : Java Database Best Practices by By
Author:By
Language: eng
Format: epub
ISBN: 0-596-00522-9
Publisher: O'Reilly
Published: 2011-10-04T19:40:09.236732+00:00
7.3 EJB BMP with JDO
From a JDO perspective, persisting EJBs as part of a bean-managed persistence model has little difference from persisting other kinds of objects. The most common difference is that you tend to be in a managed environment when working with EJBs; similarly, you tend to be in a nonmanaged environment when building other kinds of applications. You can, of course, build web applications in a managed environment and EJB applications that use bean-managed transactions.
One key differentiator between working with JDO in a managed J2EE container versus a nonmanaged environmentbesides the obvious impact of transaction managementis the way you reference the PersistenceManagerFactory class. In a non-J2EE container or a nonmanaged environment, you pass a set of properties to the JDOHelper class. The JDOHelper class then hands you the appropriate PersistenceManagerFactory.
When working in a J2EE container, you can rely on JNDI to provide you with a PersistenceManagerFactory without worrying about properties:
Context ctx = new InitialContext( ); PersistenceManagerFactory factory; factory = (PersistenceManagerFactory)ctx.lookup("jdo/pmf");
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(15927)
The Mikado Method by Ola Ellnestam Daniel Brolund(13192)
Hello! Python by Anthony Briggs(13020)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(12205)
Dependency Injection in .NET by Mark Seemann(12051)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(10827)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(10643)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10537)
Grails in Action by Glen Smith Peter Ledbrook(10123)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(10007)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(9475)
Hit Refresh by Satya Nadella(9040)
Kotlin in Action by Dmitry Jemerov(8724)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(8643)
The Kubernetes Operator Framework Book by Michael Dame(8484)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8305)
Robo-Advisor with Python by Aki Ranin(8261)
Practical Computer Architecture with Python and ARM by Alan Clements(8232)
Implementing Enterprise Observability for Success by Manisha Agrawal and Karun Krishnannair(8202)